<?php
@ini_set( "max_execution_time", "360" );
  
     
function com_install() {
	global $mosConfig_absolute_path, $mosConfig_dbprefix, $mainframe, $database; 
		

		
		if(!class_exists('PclZip')){
include($mosConfig_absolute_path . '/administrator/components/com_oscommerce/pclzip.lib.php');

}
		@chmod("$mosConfig_absolute_path/components/com_ecjc_lang", 0777); 
		@chmod("$mosConfig_absolute_path/components/com_ecjc_lang/additional.zip", 0777);
  $archive = new PclZip($mosConfig_absolute_path .'/components/com_ecjc_lang/additional.zip');
$list = $archive->extract(PCLZIP_OPT_PATH, $mosConfig_absolute_path ."/components/com_ecjc_lang/",PCLZIP_OPT_SET_CHMOD, 0777);
  if ($list == 0) {
    die ("Error  : '".$archive->errorInfo(true)."'");
  }
  
  
 
@unlink($mosConfig_absolute_path .'/components/com_ecjc_lang/additional.zip');


?>
<center>
<table width = "100%" border = "0">
  <tr>
    <td width = "10%">
    </td>

    <td width = "90%">
      <p>
      <strong>ECJC Online Shop 1.2.1RC1</strong> Component <em>for Joomla! CMS</em>

        <br/> &copy; 2006 - 2007 by Joomla-Host
        <br />
                All rights reserved.

                <br/>

                <br/> This Joomla!  Component has been released under the <a href = "index2.php?option=com_admisc&amp;task=license">GNU/GPL</a>.

                <br/> <strong>Note:</strong> This component is based on osCommerce Milestone 2.2RC2a

                <br/><strong>

                
                <br/> </u>
        </p>
    </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
            <strong><code>I N S T A L L :</code></strong>

                <br/>

                <br/>
<ul>
               <li> STEP 1 : <font color = "Green">Succesfull</font>
                </li>
               <li> STEP 2 : <font color = "Green">Succesfull</font>
                </li>
               <li> STEP 3 : Database Setup / Upgrade:<br>
                Please Note the following before continuing:::<br>
                <strong>If using Joomla 1.5.xxx please make sure the joomla file edits are done before clicking on a link below:</strong><br>
                Using Clean install with or without sample data will remove all data stored in the ecjc database tables, effectivly creating a clean install. If you have a current install and would like to keep all your data, use the upgrade Link only...<br><br><ul>
              <li>  <a href="index3.php?option=com_oscommerce&osMod=installdb"><strong>New / Clean Install </strong></a><br></li>
              <li>  <a href="index3.php?option=com_oscommerce&osMod=installdb&sample=1"><strong>New / Clean Install with Sample Data</strong></a><br></li>
              <li>  <a href="index3.php?option=com_oscommerce&osMod=upgradedb"><strong>Upgrade Current Database Structure</strong></a><br></li>
                </ul></li><br>
                <li>
                <b>Once Database Functions complete, your store is ready to run.
                </li></ul>
                
    </td>
  </tr>
    </table>
</center>
<?php
}
?>
